package com.control.qct.businesssteward.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/12/16 0016.
 */

public class GoodsChildTypeModel implements Serializable {

    /**
     * categorySN : 4
     * title : 茶叶
     * childrens : [{"categorySN":24,"title":"白茶"},{"categorySN":26,"title":"花茶"},{"categorySN":27,"title":"武夷岩茶的"},
     * {"categorySN":28,"title":"正山小种"},{"categorySN":29,"title":"其他"},{"categorySN":240,"title":"HR2"},
     * {"categorySN":242,"title":"HR1"},{"categorySN":243,"title":"的"},{"categorySN":253,"title":"HR"}]
     */

    private int categorySN;
    private String title;
    private List<ChildrensBean> childrens;
    private boolean isChecked;

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public int getCategorySN() {
        return categorySN;
    }

    public void setCategorySN(int categorySN) {
        this.categorySN = categorySN;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<ChildrensBean> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<ChildrensBean> childrens) {
        this.childrens = childrens;
    }

    @Override
    public String toString() {
        return "GoodsChildTypeModel{" +
                "categorySN=" + categorySN +
                ", title='" + title + '\'' +
                ", childrens=" + childrens +
                '}';
    }

    public static class ChildrensBean {
        /**
         * categorySN : 24
         * title : 白茶
         */

        private int categorySN;
        private String title;
        private boolean isChecked;

        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean checked) {
            isChecked = checked;
        }

        public int getCategorySN() {
            return categorySN;
        }

        public void setCategorySN(int categorySN) {
            this.categorySN = categorySN;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        @Override
        public String toString() {
            return "ChildrensBean{" +
                    "categorySN=" + categorySN +
                    ", title='" + title + '\'' +
                    ", isChecked=" + isChecked +
                    '}';
        }
    }
}
